Skip to main content

All Questions

0votes
1answer
92views

Best method to further execute the DRY principle and/or raise performance in my script? (client login/signup system)

Just for practice purposes, I written a basic client sided login/signup system that allows you to make an account, and then log into the account from my webpage. What it does is append to an object ...
DanielP533's user avatar
2votes
1answer
52views

Building a JavaScript GroupPicker class that is tightly coupled with HTML structure. Is this an anti-pattern?

I'm building a GroupPicker class that essentially manages an interface that allows the user to move items between two columns "assigned" vs "unassigned". The items ...
Clint Winter's user avatar
3votes
0answers
202views

Dynamic Bootstrap 4 modal using JavaScript OOP

I have created dynamic Bootstrap 4 modal using JavaScript OOP. Please verify and give your reviews how I can improve the code. I have passed four parameters to create a dynamic modal: ...
user11657014's user avatar
2votes
1answer
132views

Tile and grid abstraction

This question is a small subset of the problem I am trying to solve. I am trying to learn to break problems into better abstractions. The original problem I am trying to solve is: Write a JS ...
CodeYogi's user avatar
2votes
2answers
200views

List component using plain JS

beginner web dev here. I created a custom list component (with edit feature) in plain JS/HTML. I have few questions on which I would like to get an answer (besides the normal feedback that you folks ...
user avatar
2votes
0answers
99views

HTML canvas element Encapsulation

I am preparing to write a widget for the browser that is both visual and interactive. I am a newbie to Javascript/Ecmascript and prototyping. I want to encapsulate the canvas element, abstract the ...
sfanjoy's user avatar
3votes
2answers
228views

Form validation library

Background: After reading this thought provoking book I decided to write a small library as an exercise. ...
CodeYogi's user avatar
4votes
2answers
71views

Window-size-dependent content toggler for an HTML form

I had to build a responsive component which allows the user to display specific content in a page. I called it the contentToggler. Here is my component in action ...
ChucKN0risK's user avatar
3votes
0answers
53views

Search Class with Static Methods

Most of my programming experience is in PHP, and I have always been a bit wary of JavaScript. I have a JavaScript class to manage executing, caching and displaying search results. ...
James Fenwick's user avatar
3votes
3answers
816views

Constructor function, prototype and making a modal

I'm playing around with prototypes, constructor functions and javascript - I'm not really a Javascript developer but am interested in this. Am I on the right track with this code? I'm looking for a ...
Iamsamstimpson's user avatar
2votes
2answers
155views

Change the navigation ul li based on the clicked country

I'm trying to create a very simple jQuery plugin in the object-oriented way. Now, I'm not sure whether the code I produced is correct and efficient OO programming. The plugin's aim is to change the ...
angular_learner's user avatar
5votes
1answer
259views

Transforming jQuery form code into clean code

The following JS code handles when the form is submitted and some little extra stuff. I'd like to have it reviewed on the following aspects: Readability Efficiency Usability OOP It works exactly as ...
Kid Diamond's user avatar
8votes
1answer
890views

Game of Life - OOP and Best Practices

I always have a problem figuring out what good JavaScript coding practices and conventions are and if I'm following them, especially concerning OOP. So I implemented The Game of Life and wanted to ask ...
tim's user avatar
  • 25.3k
6votes
1answer
876views

Interactive slider

Task: Create an interactive slider that allows the user to view a given image gallery. Slider controls: See previous slide See next slide Quick navigation through the images / Paging - ...
sparcmen's user avatar
11votes
3answers
287views

Updating Grid on Webpage (new version)

Previous version: Updating Grid on Webpage Task: Draw a grid with a given number of rows and columns. Each cell can be any color. The same grid should also be updated at a predetermined time ...
sparcmen's user avatar

153050per page
close